//
// Created by zhupi on 2024/11/2.
//

#ifndef DEMO2_EDIT_LIBRARY_DIALOG_VIEW_CTRL_H
#define DEMO2_EDIT_LIBRARY_DIALOG_VIEW_CTRL_H


#include <QObject>

#include "edit_library_dialog.h"

class MaterialDialogViewCtrl : public QObject
{
    Q_OBJECT
public:
    static MaterialDialogViewCtrl& GetIns();
    void Initial(const QString &name, int parentId);

signals:
    void RowSelectedSg(const QString &buttonName, const std::vector<QString> &rowData);

private:
    void InitConect();

    EditLibraryDialog *dialog_ {nullptr};
};


#endif //DEMO2_EDIT_LIBRARY_DIALOG_VIEW_CTRL_H
